package object;

public class ObjectDemo {
    public static void main(String[] args) {
        Object o1 = new Object();
        Point p1 = new Point(1, 2);
        Point p2 = new Point(1, 2);
        System.out.println(p1==p2);
        System.out.println(p1.equals(p2));

        StringBuilder sb1 = new StringBuilder("hello");
        StringBuilder sb2 = new StringBuilder("hello");
        System.out.println(sb1==sb2);
        System.out.println(sb1.equals(sb2));

    }
}
